package com.yun.zf.common.mapstruct.admin;

import com.yun.zf.common.admin.domain.ZfOrder;
import com.yun.zf.common.admin.dto.order.OrderInfoDto;
import com.yun.zf.common.admin.model.order.CreateOrderMo;
import com.yun.zf.common.admin.model.order.SubOrderMo;
import com.yun.zf.common.app.domain.ZfSubOrder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface OrderMapper {
    OrderMapper INSTANCE = Mappers.getMapper(OrderMapper.class);
    ZfOrder moToOrder(CreateOrderMo orderMo);

    List<ZfSubOrder> orderDetailMoToDetail(List<SubOrderMo> detailMos);

    OrderInfoDto  orderToDto(ZfOrder order);
}
